<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>菜鸟教程 React 实例</title>
    <script src="https://cdn.staticfile.org/react/16.4.0/umd/react.development.js"></script>
    <script src="https://cdn.staticfile.org/react-dom/16.4.0/umd/react-dom.development.js"></script>
    <script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>
</head>
<body>
<div id="example"></div>

<script type="text/babel">
    function HelloMessage(props) {
        return <h1>Hello {props.name}!</h1>;
    }

    function Name(props) {
        return <h1>网站名称：{props.name}</h1>
    }

    function Url(props) {
        return <h1>网站地址: {props.url}</h1>
    }

    function Nickname(props) {
        return <h1>网站小名: {props.nickname}</h1>
    }

    function App() {
        return (
            <div>
                <Name name="菜鸟教程"/>
                <Url url="http://www.runoob.com"/>
                <Nickname nickname="Runoob"/>
            </div>)
    }


    ReactDOM.render(
        <App></App>
        ,document.getElementById('example')
    );
</script>

</body>
</html>